﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Model
{
    ///<summary>
    ///盘点单
    ///</summary>
    [SugarTable("t_StocktakingOrder")]
    public partial class t_StocktakingOrder
    {
        public t_StocktakingOrder()
        {


        }
        /// <summary>
        /// Desc:盘点订单Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string Name { get; set; }

        /// <summary>
        /// Desc:订单号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string OrderSN { get; set; }

        /// <summary>
        /// Desc:库房Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int WarehouseId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseCode { get; set; }

        /// <summary>
        /// Desc:库房
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WarehouseName { get; set; }

        /// <summary>
        /// Desc:库区Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AreaId { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaCode { get; set; }

        /// <summary>
        /// Desc:库区
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AreaName { get; set; }

        /// <summary>
        /// Desc:公司Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CompanyId { get; set; }

        /// <summary>
        /// Desc:公司名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CompanyName { get; set; }

        /// <summary>
        /// Desc:单据类型Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillType { get; set; }

        /// <summary>
        /// Desc:ERP单据类型编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ERPCode { get; set; }

        /// <summary>
        /// Desc:单据状态：0-创建;1-提交;2-审核通过;3-作业中；4-已完成;5-强制完成;6-失效；7-异常
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:物料Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:批次号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BatchNO { get; set; }

        /// <summary>
        /// Desc:盘点计划：10-普通抽盘；20-临时抽盘；30-紧急抽盘；40-货主抽盘；50-库区抽盘；
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int PlanType { get; set; }

        /// <summary>
        /// Desc:盘点方法：0-全部盘点；10-不盘30天已盘点的库区；20-不盘15天已盘点的库区；30-不盘7天内已盘点的库区；
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int StocktakeWay { get; set; }

        /// <summary>
        /// Desc:单盘最大库位数
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? MaxLocationCount { get; set; }

        /// <summary>
        /// Desc:盘点粒度：0-全部盘点；10-抽查盘点（5%库位）；20-抽查盘点（25%库位）；30-抽查盘点（50%库位）	
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Granularity { get; set; }

        /// <summary>
        /// Desc:库位数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int CellCount { get; set; }

        /// <summary>
        /// Desc:完成数量
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FinishedCount { get; set; }

        /// <summary>
        /// Desc:动碰次数
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? TouchTimes { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? TouchStartDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? TouchEndDate { get; set; }

        /// <summary>
        /// Desc:循环次数
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int LoopTimes { get; set; }

        /// <summary>
        /// Desc:优先级
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int PriorityLevel { get; set; }

        /// <summary>
        /// Desc:盘点执行时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ExecDate { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:修改人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:提交时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? SubmitDate { get; set; }

        /// <summary>
        /// Desc:提交人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? SubmitUserId { get; set; }

        /// <summary>
        /// Desc:提交人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? SubmitUserName { get; set; }

        /// <summary>
        /// Desc:审核时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? AuditDate { get; set; }

        /// <summary>
        /// Desc:审核人Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? AuditUserId { get; set; }

        /// <summary>
        /// Desc:审核人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? AuditUserName { get; set; }

    }
}
